<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<div id="app"><cpnv/></div>

<script src="./js/vue.js"></script>

<script>

  // 1, 创建并注册组件，使用组件的语法糖
  Vue.component('cpnv',{
    template:`
      <div>
        <h1>Hello World</h1>
      </div>
    `
  });

  const app = new Vue({
    el:'#app',
    data:{
      message:'Hello World'
    }
  });
</script>
</body>
</html>